Algorithms to predict the probability of a primary refractory state